/**
 * jims
 */
package com.jims.master.modules.template.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.template.dao.TreatRecordItemDao;
import com.jims.master.modules.template.entity.TreatRecordItem;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * TreatRecordItemService
 * @author zp
 * @version 2017-07-17
 */
@Service
@Transactional(readOnly = true)
public class TreatRecordItemService extends CrudService<TreatRecordItemDao, TreatRecordItem> {

	public TreatRecordItem get(String id) {
		return super.get(id);
	}
	
	public List<TreatRecordItem> findList(TreatRecordItem treatRecordItem) {
		return super.findList(treatRecordItem);
	}
	
	public Page<TreatRecordItem> findPage(Page<TreatRecordItem> page, TreatRecordItem treatRecordItem) {
		return super.findPage(page, treatRecordItem);
	}
	
	@Transactional(readOnly = false)
	public int save(TreatRecordItem treatRecordItem) {
		return super.save(treatRecordItem);
	}
	
	@Transactional(readOnly = false)
	public int delete(TreatRecordItem treatRecordItem) {
		return super.delete(treatRecordItem);
	}
	
}